import request from '@/utils/request.js'

// 推荐歌单
export const getPersonalizedAPI = function (limit) {
  return request({
    url: '/personalized',
    params: {
      limit
    }
  })
}

// 最新音乐
/**
 *
 * @param {Number} limit 获取的数量
 * @returns Promise
 */
export const getNewMusicAPI = function (limit) {
  return request({
    url: '/personalized/newsong',
    params: {
      limit
    }
  })
}
